import { ElMessage } from "element-plus"

// 消息提示
export function useMessage() {
    return {
        createMessage: (options) => {
            let option = {
                duration: options.duration,
            }
            option.message = options.content
            ElMessage(option)
        },
    }
}
